Google\Site_Kit\Core\Permissions\Permissions B

Total Complexity 78
Dependencies 12
Dependents 37
Total lines 746
Lines of code 328
Logical lines of code 152
Comment lines 310
Methods 23
Properties 9

Methods 23

Method Rating Maintainability Complexity Lines of code
map_meta_capabilities()
B
41 22 54
check_module_sharing_admin_capability()
A
52 8 25
check_dashboard_sharing_capability()
S
58 6 16
check_view_wp_dashboard_widget_and_admin_bar_capability()
S
62 5 11
register()
S
49 3 36
check_view_authenticated_dashboard_capability()
S
65 4 10
get_dashboard_sharing_meta_permissions()
S
62 3 11
__construct()
S
49 1 36
get_rest_routes()
S
58 2 18
grant_additional_caps()
S
67 3 8
check_view_splash_capability()
S
67 3 9
check_view_shared_dashboard_capability()
S
67 3 9
get_capabilities()
S
63 1 15
check_read_shared_module_data_capability()
S
71 2 6
user_has_shared_role_for_module()
S
68 2 7
user_has_shared_role()
S
68 2 7
check_view_dashboard_capability()
S
68 2 7
is_user_authenticated()
S
71 1 6
is_user_verified()
S
71 1 6
is_shared_dashboard_splash_dismissed()
S
71 1 6
check_all_for_current_user()
S
65 1 10
get_dashboard_sharing_capabilities()
S
69 1 8
get_dashboard_sharing_meta_capabilities()
S
71 1 7